#include "widget.h"
#include "ui_widget.h"

Widget::Widget(QWidget *parent)
    : QWidget(parent)
    , ui(new Ui::Widget)
{
    ui->setupUi(this);
#if 0
    QToolBox* toolBox1 = new QToolBox(this);

    QWidget* page1 = new QWidget(this);
    QVBoxLayout* vBoxLayout1 = new QVBoxLayout(page1);

    QPushButton *pb1 = new QPushButton("大话西游", page1);
    QPushButton *pb2 = new QPushButton("功夫", page1);
    QPushButton *pb3 = new QPushButton("整蛊专家", page1);
    QPushButton *pb4 = new QPushButton("唐伯虎点秋香", page1);
    vBoxLayout1->addWidget(pb1);
    vBoxLayout1->addWidget(pb2);
    vBoxLayout1->addWidget(pb3);
    vBoxLayout1->addWidget(pb4);
    page1->setLayout(vBoxLayout1);

    toolBox1->addItem(page1,"周星驰");


    QWidget* page2 = new QWidget(this);
    QVBoxLayout* vBoxLayout2 = new QVBoxLayout(page2);

    QPushButton *pb5 = new QPushButton("无间道", page2);
    QPushButton *pb6 = new QPushButton("拆弹专家", page2);
    vBoxLayout2->addWidget(pb5);
    vBoxLayout2->addWidget(pb6);
    page2->setLayout(vBoxLayout2);

    toolBox1->addItem(page2,"刘德华");

    QVBoxLayout* vBoxLayout3 = new QVBoxLayout(this);
    vBoxLayout3->addWidget(toolBox1);
    this->setLayout(vBoxLayout3);
#endif

}

Widget::~Widget()
{
    delete ui;
}
